#ifndef _XEN_XFR_STUB_
static int domain_suspend(u32 dom, void *data){
+ int err = 0;
Conn *xend = data;
- return xfr_vm_suspend(xend, dom);
+ dprintf("> dom=%lu data=%p\n", dom, data);
+ err = xfr_vm_suspend(xend, dom);
+ dprintf("< err=%d\n", err);
+ return err;
}
static int xc_handle = 0;
if(xc_handle <= 0){
xc_handle = xc_interface_open();
}
+ dprintf("< xc_handle=%d\n", xc_handle);
return xc_handle;
}
#else
XcIOContext _ioctxt = {}, *ioctxt = &_ioctxt;
dprintf("> dom=%d\n", dom);
+ ioctxt->domain = dom;
ioctxt->io = io;
ioctxt->info = iostdout;
ioctxt->err = iostderr;
int err = 0;
IOStream *io = NULL;
+ dprintf("> file=%s\n", file);
io = file_stream_fopen(file, "wb");
if(!io){
+ dprintf("> Failed to open %s\n", file);
err = -EIO;
goto exit;
}
IOStream_close(io);
IOStream_free(io);
}
+ dprintf("< err=%d\n", err);
return err;
}